package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Attribute entity. @author MyEclipse Persistence Tools
 */

public class Attribute implements java.io.Serializable {

	// Fields

	private Long id;
	private ProductCategory productCategory;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private Integer orders;
	private String name;
	private Integer propertyIndex;
	private Set attributeOptions = new HashSet(0);

	// Constructors

	/** default constructor */
	public Attribute() {
	}

	/** minimal constructor */
	public Attribute(ProductCategory productCategory, Timestamp createDate,
			Timestamp modifyDate, String name, Integer propertyIndex) {
		this.productCategory = productCategory;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.name = name;
		this.propertyIndex = propertyIndex;
	}

	/** full constructor */
	public Attribute(ProductCategory productCategory, Timestamp createDate,
			Timestamp modifyDate, Integer orders, String name,
			Integer propertyIndex, Set attributeOptions) {
		this.productCategory = productCategory;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.orders = orders;
		this.name = name;
		this.propertyIndex = propertyIndex;
		this.attributeOptions = attributeOptions;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ProductCategory getProductCategory() {
		return this.productCategory;
	}

	public void setProductCategory(ProductCategory productCategory) {
		this.productCategory = productCategory;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public Integer getOrders() {
		return this.orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPropertyIndex() {
		return this.propertyIndex;
	}

	public void setPropertyIndex(Integer propertyIndex) {
		this.propertyIndex = propertyIndex;
	}

	public Set getAttributeOptions() {
		return this.attributeOptions;
	}

	public void setAttributeOptions(Set attributeOptions) {
		this.attributeOptions = attributeOptions;
	}

}